﻿
@inherits MvcIoc.Pages.ProteinTrackerBasePage
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    double? amount = 0;

    double? total = ViewBag.Total;
    double? goal = ViewBag.Goal;
    
}

<h2>Index</h2>

@AnalitycsService.Code
Total: @Html.DisplayFor(m=>total)
Goal: @Html.DisplayFor(m=>goal)

@using (Html.BeginForm("AddProtein","ProteinTracker"))
{
    @Html.EditorFor(m=>amount)
    <input type="Submit" value="Add"/>
}